package com.reading_recognition_system.mapper;

import com.reading_recognition_system.pojo.Test;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TestMapper {
    @Select("select id,name,manufacturer,model_number,rated_ac_power,grid_type from inverter_info where id=#{id}")
    public Test getById(@Param("id") int id);
    @Select("select id,name,manufacturer,model_number,rated_ac_power,grid_type from inverter_info")
    public List<Test> getAll();
}
